package guowei.gulicart.service;

import guowei.gulicart.vo.Cart;
import guowei.gulicart.vo.CartItem;

import java.math.BigDecimal;
import java.util.List;
import java.util.concurrent.ExecutionException;

public interface CartService {
    CartItem addToCart(Long skuId, Integer num) throws ExecutionException, InterruptedException;

    CartItem getCartItemByItemId(Long skuId);

    /**
     * 获取购物车
     * @return
     */
    Cart getCartItems();

    void changeChecked(Long skuId, Integer check);

    void numChangee(Long skuId, Integer num);

    void deleteRedis(Long skuId);

    List<CartItem> getOrderItems(String userkey);

    List<CartItem> getOrderItemsNoKeys();
}
